import request from '../../utils/Request'

export const saveSanitation = data => {
    return request({
        method: 'post',
        url: '/api/daily/sanitation/save',
        data: data
    })
}

export const deleteSanitation = bid => {
    return request({
        method: 'get',
        url: '/api/daily/sanitation/delete/' + bid,
        params: {}
    })
}

export const selectSanitation = bid => {
    return request({
        method: 'get',
        url: '/api/daily/sanitation/select' + bid,
        params: {}
    })
}

export const listSanitation = (data, current, size) => {
    return request({
        method: 'get',
        url: '/api/daily/sanitation/list',
        params: data
    })
}

export const listSanitationByManage = (data, current, size) => {
    data.current = current
    data.size = size
    return request({
        method: 'get',
        url: '/api/daily/sanitation/list/manage',
        params: {data}
    })
}

export const listScoreByManage = bid => {
    return request({
        method: 'get',
        url: '/api/daily/sanitation/list/score/manage',
        params: {}
    })
}

export const listCountBeyondScoreByBuilding = bid => {
    return request({
        method: 'get',
        url: '/api/daily/sanitation//list/score/building',
        params: {}
    })
}


